<h1>Listing categories</h1>

<table>
  <tr>
    <th>Name</th>
    
  </tr>

	<% for category in @categories %>
	  <tr>
	    <td><%= link_to h(category.name), category %></td> 
	    <%#= link_to 'Edit', edit_category_path(category) %>
	    <%#= link_to 'Destroy', category, :confirm => 'Are you sure?', :method => :delete %>
	  </tr>
	<% end %>
</table>

<br />

<%#= link_to 'New category', new_category_path %>
